package lanxing.bootstrap.json;

public class BaseResponse {
    private int code = 200;
    private String msg = "success";

    public BaseResponse() {

    }

    public BaseResponse(int code) {
        this.code = code;
        if (code == 200) {
            this.msg = "ok";
        } else {
            this.msg = null;
        }
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
